package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IFlip
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.javaBean.FlipBean
import fhp.hlhj.giantfold.module.FlipModule

/**
 * author: FHP
 * data: on 2018\1\30 0030 14:44
 * E-Mail: 103945089@qq.com
 */
class FlipPresenter(private val iFlip: IFlip) : FlipModule.OnFlipListener {
    private val module=FlipModule()

    fun flip(params: HttpParams){
        module.flip(params,this)
    }

    fun setAnima(){
        iFlip.setAni()
    }

    override fun onResp(baseBean: FlipBean) {
        iFlip.flip(baseBean)
    }
}